package com.huajin.codetest.algorithm;

public class DiGuiTest {

    public static void main(String[] args) {
        diGui(5);
    }

    //-- 先进后出
    public static void diGui(int a) {
        if (a > 0 && a <= 5) {
            a = a - 1;
            System.out.println("a=" + a);
            diGui(a);
            System.out.println(a);
        }
    }

}
